<?php

return [
    'app_id'=>env('WX_APP_ID'),
    'secret'=>env('WX_SECRET'),
    'token'=>env('WX_TOKEN'),

    //模板消息id
    'template_id' => [

        //订单确认通知
        'order_confirm'=> env('WX_TEMPLATE_ORDER_CONFIRM'),
        'order_paid'=> env('WX_TEMPLATE_ORDER_PAID'),
        'notice_driver'=> env('WX_TEMPLATE_NOTICE_DRIVER'),
        'fail_checkout'=> env('WX_TEMPLATE_FAIL_CHECKOUT'),



    ],

    'payment' => [
        'merchant_id'        => env('WX_MERCHANT_ID'),
        'key'                => env('WX_KEY'),
        'cert_path'          => env('WX_CERT_PATH',storage_path('cert/apiclient_cert.pem')), // XXX: 绝对路径！！！！
        'key_path'           => env('WX_KEY_PATH',storage_path('cert/apiclient_key.pem')),      // XXX: 绝对路径！！！！
        'notify_url'         => env('WX_PAY_CALLBACK'),       // 你也可以在下单时单独设置来想覆盖它
    ],

    'log' => [
        'level' => 'debug',
        'file'  => storage_path('logs/wechat.log'),
    ],

    'withdraw_phone'=> env('WITHDRAW_PHONE'),

];
